﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Extjs_ReGSharp.Sorting
{
	internal class DefaultBehaviourFactory<T> : ISortingBehaviourFactory<T>
	{
		#region ISortingBehaviourFactory<T> Members

		public ISortingBehaviour<T> CreateSortingBehaviour(string fieldName)
		{
			if (fieldName != null)
			{
				return new DefaultSortingBehaviour<T>(fieldName);
			}

			return null;
		}

		#endregion
	}
}
